//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.dao
{
	import __AS3__.vec.Vector;
	
	import reader.model.vo.BlogLabelVO;
	import reader.model.vo.UserVO;
	
	public interface ILabelDAO
	{
		function insertLabel(label:BlogLabelVO, user:UserVO):int;
		
		function updateLabel(label:BlogLabelVO):Boolean;
		
		function deleteLabel(label:BlogLabelVO):Boolean;
		
		function deleteLabelByUser(user:UserVO):Boolean;
		
		function deleteLabels(labels:Vector.<BlogLabelVO>):void;
		
		function selectLabel(labelId:int):BlogLabelVO;
		
		function selectAllLabels(user:UserVO):Vector.<BlogLabelVO>;
		
		function getCount(user:UserVO):uint;
	}
}